61afb8f1793884de9089b9722c762c79e24bd4ea,system-service/app/src/main/java/org/wso2/emm/system/service/api/OTADownload.java,OTADownload,OTADownload,#Context#,54

Before Change


            String message = "Firmware upgrade URL provided is not valid.";
            sendBroadcast(Constants.Operation.GET_FIRMWARE_UPGRADE_PACKAGE_STATUS,
                    Constants.Status.MALFORMED_OTA_URL, message);
            CommonUtils.callAgentApp(context, Constants.Operation.
                    FIRMWARE_UPGRADE_FAILURE, Preference.getInt(
                    context, context.getResources().getString(R.string.operation_id)), message);
            Log.e(TAG, "OTA server manager threw exception ..." + e);
        }
    }

After Change


            } else {
                CommonUtils.sendBroadcast(context, Constants.Operation.UPGRADE_FIRMWARE, Constants.Code.FAILURE,
                        Constants.Status.MALFORMED_OTA_URL, message);
                CommonUtils.callAgentApp(context, Constants.Operation.
                        FIRMWARE_UPGRADE_FAILURE, Preference.getInt(
                        context, context.getResources().getString(R.string.operation_id)), message);
            }
            Log.e(TAG, "OTA server manager threw exception ..." + e);
        }